<include file="Public::header" />
    <div class="main">
        <a href="{:U('memcp/sitecms',array('curr'=>all))}">全部</a>
        <a href="{:U('memcp/sitecms',array('curr'=>received))}">收件的</a>
        <a href="{:U('memcp/sitecms',array('curr'=>send))}">发出的</a>        
        <form>
            <table>
                <tr>
                    <th>信息</th>
                    <th>状态<th>
                    <th>时间</th>
                    <th>&nbsp;</th>
                </tr>
                <volist name="data" id="vo">
                    <tr>
                        <php> $vo['content'] = (mb_strlen($vo['content'],'utf-8') > 10) ? mb_substr($vo['content'],0,10,'utf-8').'...' : $vo['content'];</php>
                        <td width=60%><input type="checkbox" name="tsid[]" value="{$vo.tsid}">&nbsp;<a href="{:U('memcp/sitesmsshow',array('tsid'=>$vo['tsid']))}" title="{$vo.content}" >{$vo.content} </a>
                        <td>
                        <php>
                            switch ($vo['rs_type']){
                                case 1 :
                                    echo '对方未看';
                                    break;
                                case 2 :
                                    echo '对方已看';
                                    break;
                                case 3 :
                                    echo '未看';
                                    break;
                                case 4 :
                                    echo '已看';
                                    break;
                            }
                        </php></td>
                        <td>{:date('Y-m-d h:i',$vo['update_time'])}</td>
                        <td>
                            <php>if($vo['rs_type'] != 1 && $vo['rs_type'] != 2){</php>
                                <img src="__APP__/resources/image/red.gif" />
                            <php>}else{</php>
                                 <img src="__APP__/resources/image/green.gif" />
                            <php>}</php>
                            <a href="{:U('people/'.$vo['re_mid'])}" title="{$vo.re_nickname}">{$vo.re_nickname}</a>
                        </td>
                    </tr>
                </volist>
                <tr>
                    <td colspan="4">
                        <a href="javascript:void(0)">全选/反选</a>
                        <a href="{:U('memcp/smsdel')}">删除</a>
                        {$page}
                    </td>
                </tr>
            </table>
        </form>
    </div>
<include file="Public::footer" />